﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="InterfaceIpAddress.cs" company="Data Ductus Malmö">
//   (c) 2010 - 2012 Data Ductus Malmö AB
// </copyright>
// --------------------------------------------------------------------------------------------------------------------

namespace DataDuctus.Snmp.Persistor.Core.Tests.TestData
{
  using System.Net;

  using DataDuctus.Snmp.Persistor.Core.Attributes;

  /// <summary>
  /// The interface ip address.
  /// </summary>
  [Entity(BaseOid = "1.3.6.1.2.1.4.20.1", Description = "Class encapsulates a row in the ipAddrEntry")]
  public class InterfaceIpAddress
  {
    #region Public Properties

    /// <summary>
    /// Gets or sets the address.
    /// </summary>
    [Index]
    [Property(SubOid = 1)]
    public IPAddress Address { get; set; }

    /// <summary>
    /// Gets or sets the broad cast address.
    /// </summary>
    [Property(SubOid = 4)]
    public int BroadCastAddress { get; set; }

    /// <summary>
    /// Gets or sets the interface index.
    /// </summary>
    [Property(SubOid = 2)]
    public int InterfaceIndex { get; set; }

    /// <summary>
    /// Gets or sets the max size reassembly.
    /// </summary>
    [Property(SubOid = 5)]
    public int MaxSizeReassembly { get; set; }

    /// <summary>
    /// Gets or sets the netmask.
    /// </summary>
    [Property(SubOid = 3)]
    public IPAddress Netmask { get; set; }

    #endregion
  }
}